package com.asset.salesforce.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.asset.salesforce.dao.FileDaoImpl;
import com.asset.salesforce.domain.Employee;
import com.asset.salesforce.domain.File;

@Service
@Transactional(readOnly=true)
public class FileService {
	@Autowired
	FileDaoImpl fileDaoImpl;
	
	@Transactional(readOnly=false)
	public void addfile(File file) {
		fileDaoImpl.addFile(file);
	}
	@Transactional(readOnly=true)
	public File getFileById(Integer id) {
		return fileDaoImpl.getFileById(id);
	}
	@Transactional(readOnly=false)
	public void saveOrUpdateFile(File file){
		fileDaoImpl.saveOrupdate(file);
	}


}
